package com.tanzhou.exception;

import com.sun.org.apache.bcel.internal.classfile.Code;

public class CustomizeException extends RuntimeException{
    private String message;
    private Integer code;
    public CustomizeException(ICustomizeErrorCode errorCode){
        this.code = errorCode.getCode();
        this.message = errorCode.getMessage();
    }
    @Override
    public String getMessage(){
        return message;
    }
    public Integer getCode(){
        return code;
    }
}
